package com.hook3.pianke.view;

import android.app.Activity;
import android.view.View;

/**
 * Created by Administrator on 2015/12/11.
 */
public  abstract class ReadDetailsBasePager {
    /**
     * 上下文
     */
    protected Activity activity;
    /**
     * 根View
     *
     */
    public View rootView;
    public String type;
    public ReadDetailsBasePager(Activity activity,String type) {
        this.activity = activity;
        this.type = type;
        rootView = initView();
    }

    /**
     * 强制孩子实现该方法，实现特效的效果
     *
     * @return
     */
    public abstract View initView();

    /**
     * 当孩子需要特有的数据的时候，重新该方法-联网请求
     */
    public void initData(){

    }
}
